package com.wj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.common.dto.upload.module.DeleteFilesContactDto;
import com.hospital.common.dto.upload.module.FindOnePostWithResourceContactDto;
import com.hospital.common.dto.upload.module.FindPostWithResourceCountDto;
import com.hospital.common.dto.upload.module.SavePicturePathDto;
import com.hospital.common.pojo.TResource;
import com.hospital.common.vo.upload.module.FindOneContentWithResourceVo;
import com.hospital.common.vo.upload.module.FindOnePostWithResourceContactVo;
import com.hospital.common.vo.upload.module.FindPostWithResourceCountVo;

import java.util.List;

/**
 * <p>
 * 资源映射表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-26
 */
public interface TResourceMapper extends BaseMapper<TResource> {

    Integer savePicturePath(SavePicturePathDto savePicturePathDto);

    Integer deleteFilesContact(DeleteFilesContactDto dto);

    TResource findOneContact(DeleteFilesContactDto dto);

    List<FindPostWithResourceCountVo> findPostWithResourceCount(FindPostWithResourceCountDto findAllContactDto);

    Long findPostWithResourceCountTotal(FindPostWithResourceCountDto findAllContactDto);

    List<FindOnePostWithResourceContactVo> findOnePostWithResourceContact(FindOnePostWithResourceContactDto findOnePostWithResourceContactDto);

    Long findOnePostWithResourceContactTotal(FindOnePostWithResourceContactDto findOnePostWithResourceContactDto);

    FindOneContentWithResourceVo findOneContentWithResource(Long contentId);
}
